import { Component, OnInit, EventEmitter, Input, Output, ChangeDetectionStrategy } from '@angular/core';

@Component({
  selector: 'el-breadcrumb',
  templateUrl: './breadcrumb.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class BreadcrumbComponent implements OnInit {
  @Input() separator: string = '/';
  @Input('separator-class') separatorClass: string = '';
  @Input() prevent: boolean = false;
  @Output() next: EventEmitter<string> = new EventEmitter();
  
  constructor() { }

  ngOnInit(): void {
  }


  itemHandle(path: any) {
    this.next.emit(path);
  }
}
